package com.kehutong.repair.dto;

import org.coraframework.orm.annotation.Column;

import java.time.LocalDateTime;

public class WebChatSetting extends KhtEntity {

    private static final long serialVersionUID = -1319763025330878894L;

    protected WebChatSetting(String id) {
        super(id);
    }

    @Column(comment = "公众号Id")
    private String appId;

    @Column(comment = "公众号名称")
    private String appName;

    @Column(length = 64, comment = "公众号密钥")
    private String appSecret;

    @Column(comment = "公众号二维码")
    private String weChatFileId;

    @Column(length = 512, comment="公众号access_token")
    private String accessToken;

    @Column(comment="公众号accessToken过期时间")
    private LocalDateTime accessTokenExpiredTime;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getWeChatFileId() {
        return weChatFileId;
    }

    public void setWeChatFileId(String weChatFileId) {
        this.weChatFileId = weChatFileId;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public LocalDateTime getAccessTokenExpiredTime() {
        return accessTokenExpiredTime;
    }

    public void setAccessTokenExpiredTime(LocalDateTime accessTokenExpiredTime) {
        this.accessTokenExpiredTime = accessTokenExpiredTime;
    }

    @Override
    public boolean valid(LocalDateTime localDateTime) {
        return super.valid(localDateTime);
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }
}
